import {
  RouteConfig,
} from '@/types/router';
import { DELETE, GET, POST, PUT } from '../index';

export const authLogin = (data: any = {}) => {
  return POST<any, RouteConfig>('/auth/login', data);
};

export const query_user_menus = (data: any = {}) => {
  return POST<any, RouteConfig>('/api/v2/serve/user/query_user_menus', data);
};

export const query_user_info = (data: any = {}) => {
  return POST<any, RouteConfig>('/api/v2/serve/user/query_user_info', data);
};

export const userUpdate = (data: any = {}) => {
  return POST<any, RouteConfig>('/api/v2/serve/user/update', data);
};

export const userUpdatePwd = (data: any = {}) => {
  return POST<any, RouteConfig>('/api/v2/serve/user/updatePwd', data);
};

